<%= stylesheet_link_tag 'signin' %>

<%= form_for(resource, html: {class: 'form-signin'}, as: resource_name, url: session_path(resource_name)) do |f| %>
  <h1 class="h3 mb-3 font-weight-normal">请登录</h1>
  <%= f.label :email, '邮箱', class: 'sr-only' %><br/>
  <%= f.email_field :email, autofocus: true, autocomplete: "邮箱", class: 'form-control', placeholder: '请输入邮箱', required: true %>
  <%= f.label :password, '密码', class: 'sr-only' %>
  <%= f.password_field :password, autocomplete: "密码", class: 'form-control', placeholder: '请输入密码', required: true %>
  <% if devise_mapping.rememberable? %>
    <div class="checkbox mb-3">
      <label>
        <%= f.check_box :remember_me %> 记住我
      </label>
    </div>
  <% end -%>
  <%= f.submit "登录", class: "btn btn-lg btn-primary btn-block" %>
<% end %>

<%= render "devise/shared/links" %>
